\<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<jsp:include page="../header.jsp" />
<div id="content">
	<div id="topstory" class="box">
		<h1>
			<fmt:message key="book.title.show" />
		</h1>
	</div>
	<div class="padding">
	<fieldset>
		<table border="0" cellspacing="5" cellpadding="0" width="100%" class="formTable tplBorder">
			<tr>
				<td width="15%"></td>
				<td width="35%"></td>
			</tr>
			<tr>
				<td><fmt:message key="books.name" /></td>
				<td><c:out value="${book.nazev }" /></td>
			</tr>
			<tr class="even">
				<td><fmt:message key="books.pocet" /></td>
				<td><c:out value="${book.pocetKnih }" /></td>
			</tr>
			<tr>
				<td><fmt:message key="books.rok" /></td>
				<td><c:out value="${book.rokVydani }" /></td>
			</tr>
			<tr class="even">
				<td><fmt:message key="books.nakladatelstvi" /></td>
				<td><a href="<%=request.getContextPath()%>/publisher/show.do?publisherId=${book.nakladatelstvi.id }">${book.nakladatelstvi.nazev
						}</a></td>
			</tr>
			<tr>
				<td><fmt:message key="books.author" /></td>
				<td><c:forEach items="${book.autorList }" var="author">
				<a href="<%=request.getContextPath()%>/authors/show.do?authorId=${author.id }">${author.jmeno } ${author.prijmeni }</a></br>
				</c:forEach></td>
			</tr>
			<tr class="even">
				<td><fmt:message key="books.department" /></td>
				<td><a href="<%=request.getContextPath()%>/department/show.do?departmentId=${book.oddeleni.id }">${book.oddeleni.nazev }</a></td>
			</tr>
		</table>
	</div>
	</fieldset>
	<!-- /padding -->
</div>
<!-- /content -->
<jsp:include page="side-menu.jsp" />
<jsp:include page="../foother.jsp" />
